<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <form id="my-form" class="am-form tpl-form-line-form" method="post">
                    <div class="widget-body">
                        <fieldset>
							<div class="widget-head am-cf">
                                <div class="widget-title am-fl">微信开放平台第三方应用 - 参数对接</div>
                            </div>
							<div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label">通信状态 </label>
                                <div class="am-u-sm-9">
									<div class="am-btn-group am-btn-group-xs">
										<span class="am-btn am-radius  {$model['status']['value']?'am-btn-success':'am-btn-default'}">
											<span class="am-icon-mixcloud am-icon-sm"> </span> {$model['status']['text']}
										</span>
										<small style="margin-left:20px;">每10分钟更新一次</small>
									</div>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label form-require"> AppID </label>
                                <div class="am-u-sm-9">
                                    <input type="text" class="tpl-form-input" name="data[app_id]"
                                           value="{$model['app_id']}" required>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label form-require"> AppSecret </label>
                                <div class="am-u-sm-9">
                                    <input type="text" class="tpl-form-input" name="data[app_secret]"
                                           value="{$model['app_secret']}" required>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label form-require"> Token </label>
                                <div class="am-u-sm-9">
                                    <input type="text" class="tpl-form-input" name="data[token]"
                                           value="{$model['token']}" required>
                                </div>
                            </div>
							<div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label form-require"> EncodingAesKey </label>
                                <div class="am-u-sm-9">
                                    <input type="text" class="tpl-form-input" name="data[encoding_aes_key]"
                                           value="{$model['encoding_aes_key']}" required>
                                </div>
                            </div>
							<div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label form-require">服务器域名 </label>
                                <div class="am-u-sm-9">
									<textarea class="" rows="3" placeholder="请输入服务器域名"
                                              name="data[api_domain]">{$model['api_domain']}</textarea>
									<small>
										建议设置多个，多个以为“;”号隔开。<br>
										第一个为主域名请确保SSL证书配置正常，其它为备用。<br>
										第一个域名SSL证书过期后请删除，启用第二个（做好配置），以此类推。<br>
										域名前请勿输入http等协议头。
									</small>
								</div>
                            </div>
							<div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label form-require"> 授权发起页域名 </label>
                                <div class="am-u-sm-9">
                                    <input type="text" class="tpl-form-input" name="data[authorize_domain]"
                                           value="{$model['authorize_domain']}" required>
										<small>域名格式例如：www.baidu.com</small>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <div class="am-u-sm-9 am-u-sm-push-3 am-margin-top-lg">
                                    <button type="submit" class="j-submit am-btn am-btn-secondary">提交
                                    </button>
                                </div>
                            </div>
                        </fieldset>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<script>
    $(function () {

        $('#my-form').formPost();

    });
</script>
